package com.renatn.yach.domain;


import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;

/**
 * User: rnasyrov
 * Date: 10.01.12
 * Time: 12:23
 */

@Entity
@Table(name = "checklists")
public class YachList extends DomainObject {

    @Column
    private String name;
    
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "list")
    private Set<YachItem> items = new HashSet<YachItem>(0);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
